﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_GetProjectName]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_GetProjectName];
GO
CREATE PROCEDURE [dbo].[sproc_GetProjectName]
    @projectid int
/*

=====================================================
功能:    得到该版块的所有帖子
参数:
    @board_id int        :    该版块ID
=====================================================

*/
AS
BEGIN
SET NOCOUNT ON

SELECT classname FROM dbo.UDS_Class WHERE classid = @projectid;

END
GO
